const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  userName: state => state.user.userName,
  // 公用的getter
  loading: state => state.app.loading,
  modalKey: state => state.app.modalKey,
  modalData: state => state.app.modalData,
  // 字典
  dicMap: state => state.common.dicMap,
  dicCodes: state => state.common.dicCodes,
  
  // 添加的路由
  addRouters: state => state.permission.addRouters
}

export default getters
